Computes model diagnostics and goodness-of-fit metrics.
With observations, model parameters, observed responses , model predictions , and mean response , the following quantities are computed.
Degenerate cases are handled as follows: is zero if ; the adjusted and residual standard error are zero if ; and the F-statistic is zero (with a p-value of 1) if or . The p-value is the upper tail of the F-distribution with degrees of freedom.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(doe_model), | intent(in) | :: | mdl |
The fitted DOE model. |
||
| real(kind=real64), | intent(in), | dimension(:,:) | :: | x |
The M-by-N matrix containing the M values of each of the N factors used in model fitting. |
|
| real(kind=real64), | intent(in), | dimension(:) | :: | y |
The M-element array containing the observed responses. This array must have the same number of rows as x. |
A doe_diagnostics object containing the R-squared, adjusted R-squared, RMSE, residual standard error, F-statistic, mean response, observation count, and parameter count.